<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>常用文档</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="refresh" content="1200">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=86e2297f">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=222aea35">
    <style>
        .filetitle {

            color: #333;
            font-weight: bold;
            font-size: 28px;
            text-align: center;
            line-height: 1;
            margin-bottom: 15px;
        }
    </style>
</head>
<body style="overflow:hidden;">
<section class="content" style="margin-bottom:100px;"  id="app" v-cloak>
        <div class="box-body no-padding " style="overflow: auto;background: #fff;">
            <div class="box-header with-border text-center" >
                <div class="filetitle">{{docMain.docName}}</div>
            </div>
            <template  v-if="docMain.typeName=='calculator'">
                <iframe :src="docMain.source"   style="width: 750px; height: 500px;margin: 0 auto;    display: block;" class="iframeH2"></iframe>
            </template>
            <div class="box-body no-padding iframeH2" style="overflow: auto;overflow-x:hidden;">
                <div v-html="docMain.source" v-if="docMain.typeName=='word'" style="margin-bottom:50px;margin-top:10px;"></div>
                <div v-else-if="docMain.typeName=='excel'" style="text-align: center;margin-bottom:50px;margin-top:10px;"><img :src="docMain.imageUrl" style="width:98%;" alt=""></div>

            </div>
        </div>



    <!-- /.box-body -->
</section>
<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=8e743a31"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=54c6b89c"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script type="text/javascript">
    console.log(urlConfig);
    var app = new Vue({
        el:'#app',
        data:{
            currentUser:getCurrentUser(),
            fileId:$.wyui.page.urlParams.fileId,
            docMain: {
                attachName: "",
                attachUrl: "",
                companyId: "",
                companyName: "",
                departName: "",
                docName: "",
                id: "",
                imageName: "",
                imageUrl: "",
                screenType: "0",
                source: "",
                fkTypeId: "2018042321034BD5BE13710F5A2FD3B5",
                typeName: "",
                userName: "",
                createUserId:getCurrentUser().id,
                delFlag:"0"
            }
        },
        methods:{
            /*根据选中条件查询设备信息(无法获取传回来的records)*/
        },
        mounted:function () {
            var that=this;
            $.wyui.postMethod(urlConfig.main.getMainDetail, {id:that.fileId}, function (r) {
                that.docMain=r.docMain;
            });
        }
    });

</script>
</body>
</html>